#ifndef STARTWINDOW_H
#define STARTWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QtDebug>
#include <QAction>
#include <QMessageBox>
#include "ui_startwindow.h"
#include "database.h"
#include "userwindow.h"


namespace Ui {
class StartWindow;
}

class StartWindow : public QMainWindow
{
  Q_OBJECT

 public:
  explicit StartWindow(QWidget *parent = nullptr);
  ~StartWindow();
  bool IdConfirm(int index, QString& name, QString& password); //ID和密码认证
  UserWindow *UserWin;
  info Log;
  DataBase *UserLog;
 signals:
  void LogSuccess(); //登陆成功

 private:
  Ui::StartWindow *ui;
};

#endif // STARTWINDOW_H
